StringScanner.ScanOver Function

Syntax

Text as C = ScanOver as c(count as n)

Arguments

Text

The text between the starting and ending offset positions.

count

The number of characters to move the offset.

Description

Skip over a number of characters.

Discussion

The <StringScanner>.ScanOver() function moves the offset by Number characters. The argument can be positive (moving towards the end of the buffer) or negative (moving towards the start of the buffer).

Example

dim scanner as P
dim txt as C
txt = <<%text%
This is wonderful prose written
by a technical writer of note.
%text%
scanner = stringscanner.create(txt)
? scanner.text
= This is magnificent prose written
by a technical writer of note.
? scanner.scanover(5)
= "This "
? scanner.getremainder()
= is wonderful prose written
by a technical writer of note.

See Also